import sys, cmd, random